// 主题
$themes:(
    light:(
        bgColor:#ffffff,
        TextColor:#000000
    ),
    dark:(
        bgColor:#141414,
        TextColor:#ffffff
    )
);
$curTheme:light;
@mixin useThemes(){
    @each $key,$value in $themes{
        $curTheme:$key !global;
         html[data-name='#{$key}'] & {
            @content
         }
    }
};
@function getVar($key){
    $ThemesMap:map-get($themes,$curTheme);
    @return  map-get($ThemesMap, $key)
}